#ifndef SNMPRDBMS_CONFIG_H
#define SNMPRDBMS_CONFIG_H

//keywords in config file
#define CONF_DEFINE "DEFINE"
#define CONF_INSTANCE "INSTANCE"
#define CONF_KW_TYPE "type"
#define CONF_KW_CSTRING "cstring"

typedef struct {
  char *typeName;
  char *rdbmsDbTable;
  char *rdbmsDbInfoTable;
  char *rdbmsDbParamTable;
  char *rdbmsDbLimitedResourceTable;
  char *rdbmsSrvTable;
  char *rdbmsSrvInfoTable;
  char *rdbmsSrvParamTable;
  char *rdbmsSrvLimitedResourceTable;
  char *rdbmsRelTable;
} conf_type;

typedef struct {
  unsigned int instance_id;
  conf_type *type;
  char      *cstring;
  void      *next;
} conf_instance_param;

conf_instance_param * config_ds_get_instance(int id);
char *conf_ds_get_instance_type_param(char *paramname, unsigned int instanceid);
char *config_ds_get_instance_param(unsigned int id, char *paramname);
void parse_config(const char *token, char *line);
void free_config(void);

#endif

